package com.bgs.travelapp.tourNote.eneity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * hbx 2022年8月4日09:24:01
 * 前端游记添加展示 (前端)
 */
@Table(name = "tournote_entity")
@Data
public class TourNoteEntity {
    @Id
    private Integer id;

    //标题
    private String title;

    //作者
    private String author;

    //富文本内容
    private String textContent;

    //封面图片id
    private Integer coverId;

    //浏览量
    private Integer views;

    //逻辑删除 0未删 1已删
    private Integer delFlag;

    //创建时间
    @JsonFormat(pattern ="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    //用户头像id
    private Integer avatarId;

    //市id
    private Integer cityId;

   //省id
    private Integer provinceId;

    //用户id
    private Integer userId;

    //发布状态
    private Integer releaseTypeId;

    //设置 公开/私密
    private String openPrivate;

    //审批失败原因
    private String failureReason;
}
